<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* var num = 123
        var obj = {age:12}
        function change(num){
            num--
            obj.age--
        }
        change(num,obj)
        document.write(num+' '+obj.age) */

        // var a = 10 ; b = 10
        // function zdy(){
        //     var a = 20 ; b = 20
        // }
        // zdy()
        // console.log(b)

        // var b
        console.log(b)
        b = 10    
        console.log(b)
    </script>
</body>
</html>